/**
 */

//#include "types_def.h"

#ifndef BITMAP_H
#define BITMAP_H

//BEGIN_C_DECLS

typedef struct{
  uint32_t w;
  uint32_t h;
  A_RGB* data;
} bitmap_t;

//bitmap_t* bitmap_create(uint32_t w, uint32_t h);
bitmap_t* bitmap_load(const char* filename);

ret_t bitmap_save(bitmap_t* b, const char* filename);

ret_t bitmap_destroy(bitmap_t* b);

//END_C_DECLS


typedef struct{
	u16 x,y;
} PointCoor;

typedef struct{
	PointCoor s;
	PointCoor e;
} RangeCoor;


typedef struct{
	PointCoor Posit[3];
	u16 lenCD[3];
	u16 bitNum;
	u16 w,h;
	u8* bit;
} QRcode_Msg;

extern int AnalysisQRcode(bitmap_t* pbin,QRcode_Msg *pQRcode);


#endif /*BITMAP_H*/
